home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2002 September / PCpro_2002_09.ISO / techtalk / automationsuite / 247setup.exe / {app} / Template / file_replace.ini < prev    next >
Encoding:
INI File  |  2002-07-11  |  2.0 KB  |  49 lines

  1. ; Note: comment lines in .INI files always start with a semicolon
  2.  
  3. [Template]
  4. Description=This template can be used to build a job that will do search & replace in text files.
  5.  
  6. [Variables]
  7. ; Key values that have their name enclosed in % signs will be used for 
  8. ; template wizard questionnaire and substitution variables
  9. ; such key values should consist of 2 comma separated parts:
  10. ;    1. Field Edit Style (EDIT, YES/NO, FILE BROWSE, 
  11. ;                         DIR BROWSE, PROCESS BROWSE,
  12. ;                         FTP BROWSE, MAIL PROFILE LIST,
  13. ;                         REMOTE FILE BROWSE, REMOTE DIR BROWSE,
  14. ;                         REMOTE AGENT LIST, DB PROFILE LIST)
  15. ;    2. Prompt
  16. ;
  17. ; Example: %VAR%=EDIT,What is the name of the service that you want to monitor?
  18. ;
  19. ; Key values that don't have their name enclosed in % signs will be used for 
  20. ; job properties (See online help on "Job property names for use with JDL commands" 
  21. ; topic for more details).
  22. ;
  23. ; Example: DAY_NUMBER=1
  24.  
  25. %DIR%=DIR BROWSE,Specify directory where you what to start search and replace operation:
  26. %FILE_MASK%=EDIT,Specify file mask for the files to be searched:
  27. %SEARCH%=EDIT,Specify text that you want to find and replace:
  28. %REPLACE%=EDIT,Specify text that you want to use as a replacement:
  29. %SEARCH_SUBDIR%=YES/NO,Do you want to search and replace in subdirectories (Y/N)?
  30. JOB_TYPE=S
  31. LOG=Y
  32. ASYNC=N
  33. SKIP=N
  34. SCHEDULE_TYPE=X
  35. DESCRIPTION=This job does search and replace in files specified by a file mask or full name.
  36.  
  37.  
  38. ; Notes: The script bellow can include substitution variables.
  39. ;        Substitution variables must be specified in %VAR% format 
  40. ;        where VAR is the variable name.
  41. ;
  42. ; Everything after the next line will be used for the template script.
  43. ;========================================================================================
  44. [Body]
  45. Dim( CountChanges, number )
  46.  
  47. FileReplaceEx( "%DIR%", "%FILE_MASK%", "%SEARCH%", "%REPLACE%", %SEARCH_SUBDIR%, CountChanges )
  48.  
  49.